package cn.sinata.wanglin.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

import cn.sinata.wanglin.utils.StringToUtils;

/**
 * 评论数据实体
 */
public class Comment implements Serializable{
    @SerializedName("id")
    private String commentId;
    @SerializedName("userID")
    private String id;//评论id
    @SerializedName("userName")
    private String fromNick;//评论者
    @SerializedName("parentName")
    private String toNick;//被评论者
    private String parentID;//被评论者id
    private String content;//评论内容
    private long time;//时间
    private int type ;//类型（0评论文章,1回复评论）

    public String getFromNick() {
        return fromNick==null?"":fromNick;
    }

    public void setFromNick(String fromNick) {
        this.fromNick = fromNick;
    }

    public String getToNick() {
        return toNick==null?"":toNick;
    }

    public void setToNick(String toNick) {
        this.toNick = toNick;
    }

    public String getContent() {
        return content==null?"":content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getId() {
        return id==null?"":id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentID() {
        return parentID ==null?"":parentID;
    }

    public void setParentID(String parentID) {
        this.parentID = parentID;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }
}
